package com.verify.emun;

public enum DG_2021 {
    UNIT_HEAD_PRIMARY("单位负责人正职"),
    UNIT_HEAD_DEPUTY("单位负责人副职"),
    UNIT_THREE_CHIEF_ENGINEERS("单位三总师"),
    DEPARTMENT_HEAD_PRIMARY("部门负责人正职"),
    DEPARTMENT_HEAD_DEPUTY("部门负责人副职"),
    DEPARTMENT_ASSISTANT("部门助理"),
    DEPARTMENT_INTERNAL_HEAD_PRIMARY("部门内设机构正职"),
    DEPARTMENT_INTERNAL_HEAD_DEPUTY("部门内设机构副职"),
    UNDEFINED("未定");

    private final String name;

    DG_2021(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static boolean contains(String value) {
        for (DG_2021 type : DG_2021.values()) {
            if (type.getName().equals(value)) {
                return true;
            }
        }
        return false;
    }
}
